package net.hn.hnms.biz.api.safety.monitor.fegin;

import net.hn.hnms.biz.api.feign.base.FeignClientsConfigurationCustom;
import net.hn.hnms.biz.api.mine.model.AlarmMessageItemVo;
import net.hn.hnms.biz.api.feign.model.DataStateVo;
import net.hn.hnms.biz.api.safety.monitor.model.BaseSensorCoordDto;
import net.hn.hnms.sys.common.core.constant.ServiceNameConstants;
import net.hn.hnms.sys.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 智呈物联 pan'sx
 * 2022/9/6 21:17
 * 1.0 version
 */
@FeignClient(contextId = "RemoteMonitorService", value = ServiceNameConstants.CMIM_BIZ_SAFETY_APP
        ,fallback = RemoteMonitorServiceFallback.class,configuration = FeignClientsConfigurationCustom.class
)
@Component
public interface RemoteMonitorService {

    @GetMapping("riskMonitor/gas/alarmMessageItem")
    R<List<AlarmMessageItemVo>> alarmMessageItem();

    @GetMapping("riskMonitor/gas/maxTime")
    R<List<DataStateVo>> getMaxTime(@RequestParam("mineCode") String mineCode,@RequestParam("companyCode")  String companyCode);

    /**
     * 获取安全监控BaseSensorTable表所有信息
     */
    @GetMapping("remoteAqjk/getBaseSensorTableAllList")
    List<BaseSensorCoordDto> getBaseSensorTableAllList(@RequestParam("mineCode") String mineCode, @RequestParam("companyCode")  String companyCode);
}
